﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookManage
{
    class Publics
    {
        //1.出版社信息（出版社名称、地址、联系人）
        public string PublicName { get; set; }
        public string PublicAddress { get; set; }
        public string PublicCont { get; set; }

        public Publics(string name,string address,string cont)
        {
            this.PublicName = name;
            this.PublicAddress = address;
            this.PublicCont = cont;
        }

        public Publics()
        {

        }

        public void GetPublics()
        {
            Console.WriteLine("出版社名称：{0}，地址：{1}，联系人：{2}",
                this.PublicName,this.PublicAddress,this.PublicCont);
        }
    }
}
